When the Appearance Manager is available, you should use the Appearance-compliant window definition ID constants described in Window Definition IDs , rather than variation codes.